﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="seller_reportReceivablesList.aspx.cs"
    Inherits="PeisongWeb.seller_reportReceivablesList" %>

<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>采购配送系统-查询对账</title>
    <!--#include file="../global.inc" -->

    <script type="text/javascript" language="javascript" src="/app_common/scripts/showDialog.js"></script>

    <script type="text/javascript">
        function resetSrh() {
            document.getElementById("ext_StartInputDt").value = "";
            document.getElementById("ext_EndInputDt").value = "";
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="sm1" runat="server">
    </asp:ScriptManager>
    <ext:ScriptManager ID="ScriptManager1" runat="server" />
    <div id="container">
        <uc1:sellerHeader runat="server" ID="header" />
        <div id="homemain">
            <div id="main">
                <div class="title">
                    <div class="title_text">
                        <ul>
                            <li class="color1">查询对账</li>
                        </ul>
                    </div>
                </div>
                <div class="line_top">
                </div>
                <div id="mainmiddle">
                    <asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional">
                        <ContentTemplate>
                            <div class="search_list">
                                <div class="search_title">
                                    <span>查询搜索</span>
                                </div>
                                <div class="listsearch" >
                                    <ul>
                                        <li style="width: auto" runat="server" id="li_orderDt1">
                                            <label style="float: left; margin-right: 5px">日期</label>
                                            <ext:DateField ID="ext_StartInputDt" runat="server" AllowBlank="true" ReadOnly="true" Width="100" Vtype="daterange">
                                                <Listeners>
                                                    <Render Handler="this.endDateField='#{ext_EndInputDt}'" />
                                                </Listeners>
                                            </ext:DateField>
                                        </li>
                                        <li style="width: auto; margin-right: 30px" runat="server" id="li_orderDt2">
                                            <label style="width: 25px;float: left">&nbsp;&nbsp;至</label>
                                            <ext:DateField ID="ext_EndInputDt" ReadOnly="true" runat="server" Width="100" Vtype="daterange">
                                                <Listeners>
                                                    <Render Handler="this.startDateField='#{ext_StartInputDt}'" />
                                                </Listeners>
                                            </ext:DateField>
                                        </li>
                                        <li style="width: auto">[<asp:LinkButton ID="lbtn_Search" runat="server" Text="搜 索"
                                            OnClick="lbtn_Search_Click">
                                        </asp:LinkButton>]&nbsp;&nbsp;&nbsp; </li>
                                        <li runat="server" id="li_reset">[<a href="javascript:resetSrh();">重 置</a>] </li>
                                    </ul>
                                </div>
                            </div>
                            <div class="list_content" >
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr class="list_title">
                                        <td width="40%">结算周期</td>
                                        <td width="15%">应收状态</td>
                                        <td width="20%">金 额</td>
                                        <td width="20%">查看详细</td>
                                    </tr>
                                </talbe>
                                <table border="0" cellspacing="0" cellpadding="0" class="list_border">
                                    <asp:Repeater ID="rpt_list" runat="server">
                                        <ItemTemplate>
                                            <tr class='<%# Container.ItemIndex%2==0?"":"tr_color"  %>'>
                                                <td width="40%">
                                                    <%# Eval("startDt")%>—<%# Eval("endDt")%>
                                                </td>
                                                <td width="15%">
                                                    <%# Eval("Status").ToString()=="1"?"未收款":"已收款"%>
                                                </td>
                                                <td width="20%" style="color:Red;">
                                                    ￥<%#Eval("Amount","{0:F2}") %>
                                                </td>
                                                <td width="20%">
                                                    <a target="_blank" href="seller_reportReceivablesDetails_<%# Eval("payId")%>.html">查看详细</a>
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </table>
                            </div>
                            <div class="page">
                                <webdiyer:AspNetPager ID="AspNetPager1" NumericButtonType="Text" MoreButtonType="Text"
                                    AlwaysShow="true" Width="98%" runat="server" PageSize="15" InvalidPageIndexErrorMessage="无效页码"
                                    NumericButtonCount="5" PageIndexOutOfRangeErrorMessage="页码超出范围" ShowCustomInfoSection="Left"
                                    CustomInfoHTML=" 每页%PageSize%条记录 | 总共%RecordCount%条记录 " CustomInfoTextAlign="Left"
                                    HorizontalAlign="Right" OnPageChanged="AspNetPager1_PageChanged" NextPageText=">"
                                    FirstPageText="<<首页" LastPageText="末页>>" PrevPageText="<" CssClass="paginator"
                                    CurrentPageButtonClass="cpb">
                                </webdiyer:AspNetPager>
                            </div>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
            </div>
        </div>
    <uc1:sellerFooter runat="server" ID="footer" />
    </div>
    </form>
</body>
</html>
